<?php
/**
 * Nweb Editor
 *
 * This script is protected by copyright. Its use, copying, modification
 * and distribution without written consent of the author is prohibited.
 *
 * @category    source
 * @package     pl.nweb.editor.model
 * @subpackage  table
 * @author      Krzysztof Kardasz <krzysztof.kardasz@gmail.com>
 * @copyright   Copyright (c) 2012 Krzysztof Kardasz
 * @license     http://www.gnu.org/licenses/lgpl-3.0.txt  GNU Lesser General Public
 * @version     1.0 $Id$
 * @link        https://nweb-editor.googlecode.com
 * @link        http://editor.nweb.pl
 */

namespace pl\nweb\editor\app\model\gateway\table;

/**
 * Model tabeli
 *
 * @category    source
 * @package     pl.nweb.editor.model
 * @subpackage  table
 * @author      Krzysztof Kardasz <krzysztof.kardasz@gmail.com>
 * @copyright   Copyright (c) 2012 Krzysztof Kardasz
 * @version     1.0 $Id$
 */
class Node extends \pl\nweb\editor\app\model\gateway\Table
{
    /**
     * Nazwa tabeli
     *
     * @var string
     */
    protected $_name = self::TABLE;

    /**
     * Klucz podstawowy
     *
     * @var string
     */
    protected $_primary = self::FIELD_ID;

    /**
     * Klasa wiersza tabeli
     *
     * @var string
     */
    protected $_rowClass = '\\pl\\nweb\\editor\\model\\gateway\\row\\Node';

    /**
     * Nazwa tabeli
     */
    const TABLE = 'tbl_nod_node';

    /**
     * Pola tabeli
     */
    const FIELD_ID         = 'nod_id';
    const FIELD_CONTENT_ID = 'nod_cnt_id';
    const FIELD_LANGUAGE   = 'nod_language';
    const FIELD_PARENT_ID  = 'nod_parent_id';
    const FIELD_TITLE      = 'nod_title';
    const FIELD_URL        = 'nod_url';
    const FIELD_REGEXP     = 'nod_regexp';
    const FIELD_PRIORITY   = 'nod_priority';
    const FIELD_LFT        = 'nod_lft';
    const FIELD_RGT        = 'nod_rgt';
}